const Koa = require('koa');
const app = new Koa();

const respDurationMiddleWare = require('./middleware/koa_response_duration')
const respHeaderMiddleWare = require('./middleware/koa_response_header')
const respDataMiddleWare = require('./middleware/koa_response_data')

app.use(respDurationMiddleWare);
app.use(respHeaderMiddleWare);
app.use(respDataMiddleWare);


app.listen(8888);

const  webSocketService = require('./service/web_socket_service')
webSocketService.listen()